package cn.iocoder.yudao.module.erp.controller.admin.business.group.goodscategory.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Schema(description = "管理后台 - 物品类目新增/修改 Request VO")
@Data
public class GoodsCategorySaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "27753")
    private Long id;

    @Schema(description = "类目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "类目名称不能为空")
    private String name;

    @Schema(description = "父类id", requiredMode = Schema.RequiredMode.REQUIRED, example = "12312")
    private Long parentId;

}